export default {
  namespaced: true, // 开启命名空间
  state: {
    c: 0,
  },
  getters: {
    bigC(state) {
      return state.c * 10
    },
  },
  actions: {
    add({ commit }, value) {
      commit('jia', value)
    },
  },
  mutations: {
    jia(state, value) {
      state.c = state.c + value
    },
  },
}
